package com.meilai.project.mapper.system;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.meilai.project.entity.system.MiniRight;
import com.meilai.project.vo.system.RightVO;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @author 张驰
 * @date 2020/11/16 10:47
 */
@Mapper
public interface MiniRightMapper extends BaseMapper<MiniRight> {
    List<RightVO> getMiniRightVOs(@Param("ids") List<Long> ids);

    List<MiniRight> getMiniRightsByUserId(@Param("userId") Long userId);
}
